]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: allow user to switch VTs using ctrl-alt-f[1-7]
authorRay Strode <rstrode@redhat.com>
Thu, 19 Feb 2015 19:39:26 +0000 (14:39 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 19 Feb 2015 19:50:03 +0000 (14:50 -0500)
Users currently can't switch VTs while at the login screen.

This commit fixes that, by adding the relevant keybindings
to the login screen's allowed keybindings list.

https://bugzilla.gnome.org/show_bug.cgi?id=744800

js/ui/windowManager.js

index 5e6bdb503afcd119cc6e9adb46b3a7a2ea650d52..45edf3ac2c224caef68926b8c3e24a31d782df72 100644 (file)
@@ -652,6 +652,14 @@ const WindowManager = new Lang.Class({
         this._workspaceSwitcherPopup = null;
         this._tilePreview = null;
 
+        this.allowKeybinding('switch-to-session-1', Shell.ActionMode.ALL);
+        this.allowKeybinding('switch-to-session-2', Shell.ActionMode.ALL);
+        this.allowKeybinding('switch-to-session-3', Shell.ActionMode.ALL);
+        this.allowKeybinding('switch-to-session-4', Shell.ActionMode.ALL);
+        this.allowKeybinding('switch-to-session-5', Shell.ActionMode.ALL);
+        this.allowKeybinding('switch-to-session-6', Shell.ActionMode.ALL);
+        this.allowKeybinding('switch-to-session-7', Shell.ActionMode.ALL);
+
         this.setCustomKeybindingHandler('switch-to-workspace-left',
                                         Shell.ActionMode.NORMAL |
                                         Shell.ActionMode.OVERVIEW,